package com.mlnx.work.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mlnx.work.enums.AccountStatusEnum;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * table name:  t_user
 * author name: amanda.shan
 * create time: 2020-12-28 17:09:55
 */ 
@Data
@ApiModel
@TableName("t_user")
public class User extends WorkBaseEntity{

	@ApiModelProperty(value = "用户邮箱")
	private String username;

	@ApiModelProperty(value = "密码")
	private String pswd;

	@ApiModelProperty(value = "用户姓名")
	private String name;

	@ApiModelProperty(value = "手机号")
	private String phone;

	@ApiModelProperty(value = "所属部门ID")
	private Integer deptId;

	@ApiModelProperty(value = "注册时间（毫秒）")
	private Date registerTime;

	@EnumValue
	@ApiModelProperty(value = "OT(\"0\", \"未审核\"), SUCESS(\"1\", \"审核通过\"),\n" +
			"    FAIL(\"2\", \"审核失败\")")
	private AccountStatusEnum status;


}

